<div class="photos index">
	<h2><?php echo __('Photos');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('photo_id');?></th>
			<th><?php echo $this->Paginator->sort('url_photo');?></th>
			<th><?php echo $this->Paginator->sort('url_thumb');?></th>
			<th><?php echo $this->Paginator->sort('button_type_rating');?></th>
			<th><?php echo $this->Paginator->sort('longitude');?></th>
			<th><?php echo $this->Paginator->sort('latitude');?></th>
			<th><?php echo $this->Paginator->sort('location_latitude');?></th>
			<th><?php echo $this->Paginator->sort('location_longitude');?></th>
			<th><?php echo $this->Paginator->sort('location_text');?></th>
			<th><?php echo $this->Paginator->sort('post_time');?></th>
			<th><?php echo $this->Paginator->sort('number_click_button');?></th>
			<th><?php echo $this->Paginator->sort('delete_flag');?></th>
			<th><?php echo $this->Paginator->sort('user_id');?></th>
			<th><?php echo $this->Paginator->sort('post_model');?></th>
			<th><?php echo $this->Paginator->sort('filter_id');?></th>
			<th><?php echo $this->Paginator->sort('caption');?></th>
			<th><?php echo $this->Paginator->sort('point');?></th>
			<th><?php echo $this->Paginator->sort('client_post_time');?></th>
			<th><?php echo $this->Paginator->sort('link_facebook');?></th>
			<th><?php echo $this->Paginator->sort('link_twitter');?></th>
			<th><?php echo $this->Paginator->sort('link_weibo');?></th>
			<th><?php echo $this->Paginator->sort('link_tumblr');?></th>
			<th><?php echo $this->Paginator->sort('link_flickr');?></th>
			<th><?php echo $this->Paginator->sort('location_id');?></th>
			<th><?php echo $this->Paginator->sort('url_id');?></th>
			<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
	foreach ($photos as $photo): ?>
	<tr>
		<td><?php echo h($photo['Photo']['photo_id']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['url_photo']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['url_thumb']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['button_type_rating']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['longitude']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['latitude']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['location_latitude']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['location_longitude']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['location_text']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['post_time']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['number_click_button']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['delete_flag']); ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($photo['User']['user_id'], array('controller' => 'users', 'action' => 'view', $photo['User']['user_id'])); ?>
		</td>
		<td><?php echo h($photo['Photo']['post_model']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['filter_id']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['caption']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['point']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['client_post_time']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['link_facebook']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['link_twitter']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['link_weibo']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['link_tumblr']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['link_flickr']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['location_id']); ?>&nbsp;</td>
		<td><?php echo h($photo['Photo']['url_id']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $photo['Photo']['photo_id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $photo['Photo']['photo_id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $photo['Photo']['photo_id']), null, __('Are you sure you want to delete # %s?', $photo['Photo']['photo_id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Photo'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Comments'), array('controller' => 'comments', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Comment'), array('controller' => 'comments', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Friends'), array('controller' => 'friends', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Friend'), array('controller' => 'friends', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Popular Informations'), array('controller' => 'popular_informations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Popular Information'), array('controller' => 'popular_informations', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ratings'), array('controller' => 'ratings', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Rating'), array('controller' => 'ratings', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Reports'), array('controller' => 'reports', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Report'), array('controller' => 'reports', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List User Pennants'), array('controller' => 'user_pennants', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User Pennant'), array('controller' => 'user_pennants', 'action' => 'add')); ?> </li>
	</ul>
</div>
